package com.htc.dlc;

import java.io.ByteArrayOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

import com.htc.adapter.NewsAdapter;
import com.htc.common.ActionEvent;
import com.htc.constants.Constants;
import com.htc.controller.NewsModelController;
import com.htc.dlc.fragment.FragmentHome;
import com.htc.dlc.fragment.FragmentNews;
import com.htc.menu.MenuController;
import com.htc.menu.MenuController.MenuSelectedListener;
import com.htc.model.dto.NewsModuleDTO;
import com.htc.utils.CommonActions;

public class NewsActivity extends FragmentActivity implements MenuSelectedListener{
	MenuController menuController;
	View menuView;
	View menuViewSecondary;
	LinearLayout blurimageView;
	CommonActions ca;
	TextView tv_actionbar_title;
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		FragmentNews homeFragment = new FragmentNews();
		getSupportFragmentManager().beginTransaction()
				.add(R.id.framentnews, homeFragment).commit();
		setContentView(R.layout.activity_news);
		

		this.ca = new CommonActions(this);
		initViews();
		this.menuController = new MenuController(this.menuView,
				this.menuViewSecondary, this.blurimageView, this,
				getBaseContext(), NewsActivity.this);

		
	}

	private void initViews() {
		this.tv_actionbar_title = (TextView)findViewById(R.id.tv_actionbar_title);
		this.tv_actionbar_title.setText("News");
		this.menuView = findViewById(R.id.menu_container);
		this.menuViewSecondary = findViewById(R.id.menu_secondary);
		this.blurimageView = (LinearLayout) findViewById(R.id.lay_blur_image);

	}

	@Override
	public void onMenuSelected(int paramInt) {
		// TODO Auto-generated method stub

	}

	
}
